<!-- 修改表单 -->

<template>
  <WebForm word6>
    <EditBase v-if="one.id" />

    <EditCircuit v-if="one.monitorPointType === 1" />
    <EditTransformer v-else-if="one.monitorPointType === 2" />
    <EditWater v-else-if="one.monitorPointType === 3" />
    <EditGas v-else-if="one.monitorPointType === 4" />

    <EditButton v-if="one.id" :noDel="one.noDel" />
    <el-empty v-else description="暂无监测点" />
  </WebForm>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'FormEdit',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(
    require.context('@admin/views/System/Dict/DictData/FormEdit', true, /vue$/),
    require.context('./', true, /vue$/),
  ),
}
</script>
